Skip to content

Comments

perf: specialize cmp, const_eq, const_is_zero for small sizes#561

Merged
prestwich merged 1 commit intorecmo:mainfrom
DaniPopes:dani/cmp-specialization
Feb 10, 2026
Merged

perf: specialize cmp, const_eq, const_is_zero for small sizes#561
prestwich merged 1 commit intorecmo:mainfrom
DaniPopes:dani/cmp-specialization

Conversation

@DaniPopes
Copy link
Contributor

No description provided.

@DaniPopes DaniPopes requested a review from prestwich as a code owner February 7, 2026 04:48
@codspeed-hq
Copy link

codspeed-hq bot commented Feb 7, 2026

Merging this PR will improve performance by 12.68%

⚡ 4 improved benchmarks
✅ 382 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
most_significant_bits/4096/4096 28.9 µs 26.1 µs +10.76%
root/127/128/128 9.7 ms 8.6 ms +12.68%
to/f32/4096 29.2 µs 26.3 µs +11.1%
to/f64/4096 29.4 µs 26.4 µs +11.16%

Comparing DaniPopes:dani/cmp-specialization (b89a765) with main (c147f59)

Open in CodSpeed

@DaniPopes DaniPopes force-pushed the dani/cmp-specialization branch 3 times, most recently from d66d555 to d938150 Compare February 7, 2026 05:35
@DaniPopes DaniPopes changed the title perf: specialize Ord::cmp for small sizes perf: extend as_primitives! macro, specialize Ord::cmp Feb 7, 2026
@DaniPopes DaniPopes force-pushed the dani/cmp-specialization branch from d938150 to 51fdf03 Compare February 7, 2026 05:44
@DaniPopes DaniPopes changed the title perf: extend as_primitives! macro, specialize Ord::cmp perf: rewrite comparison with subtraction, specialize small sizes Feb 7, 2026
@DaniPopes DaniPopes force-pushed the dani/cmp-specialization branch 2 times, most recently from 6739eb7 to 45499f6 Compare February 7, 2026 05:54
@DaniPopes DaniPopes force-pushed the dani/cmp-specialization branch from 45499f6 to b89a765 Compare February 7, 2026 06:04
@DaniPopes DaniPopes changed the title perf: rewrite comparison with subtraction, specialize small sizes perf: specialize cmp, const_eq, const_is_zero for small sizes Feb 7, 2026
@prestwich prestwich merged commit bc691c1 into recmo:main Feb 10, 2026
19 checks passed
@DaniPopes DaniPopes deleted the dani/cmp-specialization branch February 10, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants